import * as staffApi from '@/api/staff';

const state = {
  staffList: {},
  // 分配角色信息
  roleLise: [],
}

const mutations = {
  SET_STAFF_LIST(state, newValue) {
    state.staffList = newValue
  },
}

const actions = {
  async updateStaffList ({commit},params) {
    const res = await staffApi.staff(params);
    commit('SET_STAFF_LIST', res)
  },
}

export default {
  namespaced: true,
  state,
  mutations,
  actions
}
